package com.hecate.user.persistence.model;


import com.hecate.common.base.basedo.BaseDO;
import com.hecate.common.base.basedo.TableId;

/**
 * 权限资源实体类
 *
 * @author 黄星星
 * @date 2020-07-30
 */
public class PermissionResource extends BaseDO {


    /**
     * 权限code
     */
    private String permissionCode;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 上级权限bid
     */
    private String parentPermissionBid;

    /**
     * 新增权限
     */
    private String addPermission;

    /**
     * 删除权限
     */
    private String deletePermission;

    /**
     * 更新权限
     */
    private String updatePermission;

    /**
     * 查询权限
     */
    private String serarchPermission;

    /**
     * 其他权限
     */
    private String otherPermission;

    /**
     * 权限资源类别
     */
    private String permissionResourceType;


    @Override
    protected String tableId() {
        return TableId.U_PERMISSION_RESOURCE;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode == null ? null : permissionCode.trim();
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName == null ? null : permissionName.trim();
    }

    public String getParentPermissionBid() {
        return parentPermissionBid;
    }

    public void setParentPermissionBid(String parentPermissionBid) {
        this.parentPermissionBid = parentPermissionBid == null ? null : parentPermissionBid.trim();
    }

    public String getAddPermission() {
        return addPermission;
    }

    public void setAddPermission(String addPermission) {
        this.addPermission = addPermission == null ? null : addPermission.trim();
    }

    public String getDeletePermission() {
        return deletePermission;
    }

    public void setDeletePermission(String deletePermission) {
        this.deletePermission = deletePermission == null ? null : deletePermission.trim();
    }

    public String getUpdatePermission() {
        return updatePermission;
    }

    public void setUpdatePermission(String updatePermission) {
        this.updatePermission = updatePermission == null ? null : updatePermission.trim();
    }

    public String getSerarchPermission() {
        return serarchPermission;
    }

    public void setSerarchPermission(String serarchPermission) {
        this.serarchPermission = serarchPermission == null ? null : serarchPermission.trim();
    }

    public String getOtherPermission() {
        return otherPermission;
    }

    public void setOtherPermission(String otherPermission) {
        this.otherPermission = otherPermission == null ? null : otherPermission.trim();
    }

    public String getPermissionResourceType() {
        return permissionResourceType;
    }

    public void setPermissionResourceType(String permissionResourceType) {
        this.permissionResourceType = permissionResourceType == null ? null : permissionResourceType.trim();
    }
}